package com.bjfu.intelligentrecognizeserver.conversation;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class ConversationContext {
    private String sessionId; //会话id
    private List<String> conversationHisTory; //对话历史

    public ConversationContext(String sessionId){
        this.sessionId = sessionId;
        this.conversationHisTory = new ArrayList<>();
    }

    //添加对话到历史记录
    public void addMessage(String message){
        conversationHisTory.add(message);
    }
}
